﻿<UserControl x:Class="WGMClient.Views.ProfileView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:thirdarty="clr-namespace:DropDownCustomColorPicker;assembly=CustomColorPicker"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    >
    <UserControl.Resources>

    </UserControl.Resources>
    <Grid  Margin="10,10,10,10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120" />
            <ColumnDefinition Width="270" />
            <ColumnDefinition  />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Display Name" VerticalAlignment="Center"/>
        <TextBlock Grid.Row="1" Foreground="#FF222222" FontFamily="Verdana" Text="Display Status"  VerticalAlignment="Center"/>
        <TextBlock Grid.Row="2" Foreground="#FF222222" FontFamily="Verdana" Text="Font"  VerticalAlignment="Center"/>
        <TextBlock Grid.Row="3" Foreground="#FF222222" FontFamily="Verdana" Text="Font Size"  VerticalAlignment="Center"/>
        <TextBlock Grid.Row="4" Foreground="#FF222222" FontFamily="Verdana" Text="Font Colour"  VerticalAlignment="Center"/>
        <TextBlock Grid.Row="5" Foreground="#FF222222" FontFamily="Verdana" Text="Font Options"  VerticalAlignment="Center"/>
        <TextBlock Grid.Row="6" Grid.ColumnSpan="2" x:Name="_fontSampleText" Foreground="#FF222222" FontFamily="Verdana" Text="Sample Text"  VerticalAlignment="Center" HorizontalAlignment="Center" />
        <TextBox Name="_displayNameTB" Grid.Column="1" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center"  Height="15.37" >
            <TextBox.Background>
                <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                    <GradientStop Offset="0.5" Color="#FF888888"/>
                    <GradientStop Offset="1" Color="Transparent"/>
                </LinearGradientBrush>
            </TextBox.Background>
        </TextBox>
        <TextBox Name="_displayStatusTB" Grid.Column="1" Grid.Row="1" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center"  Height="15.37" >
            <TextBox.Background>
                <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                    <GradientStop Offset="0.5" Color="#FF888888"/>
                    <GradientStop Offset="1" Color="Transparent"/>
                </LinearGradientBrush>
            </TextBox.Background>
        </TextBox>
        <ComboBox Grid.Row="2" Grid.Column="1" x:Name="_profileFontChooser" ItemsSource="{x:Static Fonts.SystemFontFamilies}" MaxDropDownHeight="200"  HorizontalAlignment="Stretch" Height="20" VerticalAlignment="Center" SelectionChanged="OnFontSelectionChanged" />
        <ComboBox Grid.Row="3" Grid.Column="1" x:Name="_profileFontSizeChooser"  MaxDropDownHeight="200"  HorizontalAlignment="Stretch" Height="20" VerticalAlignment="Center" SelectionChanged="OnFontSelectionChanged" >
            <sys:Int32>10</sys:Int32>
            <sys:Int32>11</sys:Int32>
            <sys:Int32>12</sys:Int32>
            <sys:Int32>13</sys:Int32>
            <sys:Int32>14</sys:Int32>
            <sys:Int32>15</sys:Int32>
            <sys:Int32>16</sys:Int32>
            <sys:Int32>17</sys:Int32>
            <sys:Int32>18</sys:Int32>
            <sys:Int32>19</sys:Int32>
            <sys:Int32>20</sys:Int32>
        </ComboBox>
        <thirdarty:CustomColorPicker Grid.Row="4" Grid.Column="1" x:Name="_profileFontColourChooser" Height="25" VerticalAlignment="Center" HorizontalAlignment="Right" SelectedColorChanged="OnFontColourChanged"/>
        <StackPanel VerticalAlignment="Center"  Grid.Row="5" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
            <CheckBox x:Name="_fontBoldChk" Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Right" Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0" Checked="OnFontOptionChk" Unchecked="OnFontOptionChk">
                <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Bold" VerticalAlignment="Center"/>
            </CheckBox>
            <CheckBox x:Name="_fontItalicChk" Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Right" Foreground="#FF222222" Background="Transparent"  Checked="OnFontOptionChk" Unchecked="OnFontOptionChk">
                <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Italics" VerticalAlignment="Center"/>
            </CheckBox>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="7" Grid.Column="1" >
            <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Reset" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnReset" Margin="0,0,12,0"/>

            <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Commit" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnCommit" />
        </StackPanel>
        <StackPanel Grid.Column="2" Grid.Row="0" Grid.RowSpan="9">
            <Border  Width="350" Height="350" CornerRadius="5" x:Name="_imageBorder" ToolTip="Click to select new image." HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnImageClick" VerticalAlignment="Top"/>
            <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Clear Image"  HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnClearImage" />

        </StackPanel>
    </Grid>
</UserControl>
